<!--
 * @FilePath     : /layui/demo/1022.html
 * @Description  : shade 设置弹出时的遮罩
 * @Date         : 2025-02-20 09:07
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-02-20 09:07
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <button class="layui-btn" id="ID-dropdown-demo-content">
      自定义内容
      <i class="layui-icon layui-icon-list layui-font-14"></i>
    </button>

    <script src="/layui/dist/layui.js"></script>
    <!-- <script src="/dropdown/common.js"></script> -->
    <script>
      layui.use(function () {
        var dropdown = layui.dropdown

        // 自定义内容
        dropdown.render({
          elem: '#ID-dropdown-demo-content',
          content: '内容',
          style: 'padding: 40px;',

          // shade: 0.3,
          shade: [0.5, 'pink'],
        })
      })
    </script>
  </body>
</html>
